package com.yl.auth.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author L
 * @since 2023-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Shicai implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("食材id")
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;

    @ApiModelProperty("物料名称")
    private String wuliao;

    @ApiModelProperty("供应商外键id")
    private Integer gid;

    @ApiModelProperty("批发价")
    private Double pifa;

    @ApiModelProperty("零售价")
    private Double lingshou;

    @ApiModelProperty("采购价")
    private Double caigou;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date gengxin;

    @ApiModelProperty("单位外键id")
    private Integer did;

    @TableField(exist = false)
    private Integer gnumber;

    private String status;

}
